import request from '@/utils/request'

// 查询租房申请列表
export function listHouseApplcation(query) {
  return request({
    url: '/member/rentingHouseApplication/list',
    method: 'get',
    params: query
  })
}

// 查询租房申请详细
export function getHouseApplcation(id) {
  return request({
    url: '/member/rentingHouseApplication/' + id,
    method: 'get'
  })
}

// 新增租房申请
export function addHouseApplcation(data) {
  return request({
    url: '/member/rentingHouseApplication',
    method: 'post',
    data: data
  })
}

// 修改租房申请
export function updateHouseApplcation(data) {
  return request({
    url: '/member/rentingHouseApplication',
    method: 'put',
    data: data
  })
}

// 删除租房申请
export function delHouseApplcation(id) {
  return request({
    url: '/member/rentingHouseApplication/' + id,
    method: 'delete'
  })
}

// 导出租房申请
export function exportHouseApplcation(query) {
  return request({
    url: '/member/rentingHouseApplication/export',
    method: 'get',
    params: query
  })
}
